﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-12-29 19:04
    /// 描 述：CourseMedia实体类
    /// </summary>
    [Table("course_media")]
    public class CourseMediaEntity : BaseEntity
    {
        /// <summary>
        /// 课程ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? course_id { get; set; }
        /// <summary>
        /// 媒体类型：1-视频，2-图片
        /// </summary>
        /// <returns></returns>
        public byte? media_type { get; set; }
        /// <summary>
        /// 媒体资源URL
        /// </summary>
        /// <returns></returns>
        public string media_url { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        /// <returns></returns>
        public int? sort { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? created_at { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? updated_at { get; set; }
    }
}
